home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
Palettes
/
SwitchBox
/
SwitchBoxInspector.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
843b
|
48 lines
#import "version.h"
#import "SwitchBox.h"
#import "SwitchBoxInspector.h"
@implementation SwitchBoxInspector
- init
{
char buf[MAXPATHLEN + 1];
[super init];
[[NXBundle bundleForClass:[SwitchBox class]] getPath:buf forResource:"SwitchBoxInspector" ofType:"nib"];
[NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]];
return self;
}
- ok:sender
{
[[NXApp mainWindow] makeFirstResponder:[NXApp mainWindow]];
[window endEditingFor:self];
[object setDefaultPanel: [initialText intValue]];
return [super ok:sender];
}
- revert:sender
{
[window endEditingFor:self];
[initialText setIntValue: [object defaultPanel]];
return[super revert:sender];
}
- (BOOL)wantsButtons
{
return NO;
}
- setVersionText: anObject
{
[anObject setStringValue: version];
return self;
}
@end